package com.czbank.financing.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: thinkpad
 * @Date: 2019/7/16 10:56
 * @Description:
 */
@RestController
public class TestController {

    @Value("${server.port}")
    private String port;

    @RequestMapping("hi")
    @ResponseBody
    public  String sayHi() {
        System.out.println("port = " + port);
        return "Hi,My port is " + port;
    }
}
